<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/18
 * Time: 14:20
 */
require_once '../common_funtion.php';
//echo __FILE__;
$dir = dirname(dirname(__DIR__)) . '\study';
$dir_new = dirname(dirname(dirname(__DIR__))) . '\study';
//$dir=dirname(__DIR__);
//echo dir_size($dir);
echo '<br>';
//var_dump(remove_dir($dir));
//var_dump(rename_or_shear_file($dir,$dir_new));
var_dump(iteration_dir_size($dir));

//echo exec_time(function (){
////     sleep(1);
//});
//echo exec_time("dir_size").'===';
//echo exec_time("iteration_dir_size");  //递归和迭代 执行时间 几乎没有差别
//echo filesize($dir);



$a=0;
//echo $a;
while ($a < 5) {
    echo $a;
    $a++;
    while ($a < 2) {
//        echo $a;
        $a++;
    }
}
// 结果：01234